<?

  $thing = 'Theme';
  $thingL = strtolower($thing);
  $thingDir = $thingL.'s/';
  $name = strtolower(trim($_REQUEST['entityname']));
  
  $fileDir = $thingDir.$name.'/';
  $filenamePage = $fileDir.'page.default.php';
  $filenameCSS = $fileDir.'default.css';
  #$filename = 'custom/'.$name.'.php';

?><h2>Creating New <?= $thing ?></h2><?

  #include('scripts/create.php');
  mkdir($fileDir);
  ExecCodeTemplate('theme.page.default', $name, $filenamePage);
  ExecCodeTemplate('theme.default.css', $name, $filenameCSS);

?>